public class Problem5 {

    public static void main(String[] args) {
	int min = 1;
	int number = 0;
	do {
	    min++;
	    for (int i = 1; i <= 20; i++) {
		if (min % i == 0) {
		    if (i == 20) {

			number = min;

		    }
		    continue;

		} else
		    break;
	    }

	} while (number == 0);
	System.out.println(number);
    }

}
